package com.bulls.demo.hrmsdemo.ib;

import java.util.ArrayList;

import javax.persistence.EntityManager;

import com.bulls.demo.hrmsdemo.dao.ListDAO;
import com.bulls.demo.hrmsdemo.dao.ListDAOImpl;

public class ListLogic {
	
	static ListDAO listDAO;
	public static ListDAO getDAO(){
		ListDAOImpl listDAOImpl = new ListDAOImpl();
		listDAO = listDAOImpl;
		return listDAO;
	}

	public static ArrayList getEmployeeList(EntityManager entityManager) {
		ArrayList employeeList = getDAO().fetchEmployeeList(entityManager);
		return employeeList;
	}

}
